{{!
  Copyright (c) HashiCorp, Inc.
  SPDX-License-Identifier: BUSL-1.1
}}

<PageHeader as |p|>
  <p.top>
    <Hds::Breadcrumb>
      <Hds::Breadcrumb::Item
        @text={{capitalize (pluralize (humanize this.model.identityType))}}
        @route="vault.cluster.access.identity.aliases"
      />
      <Hds::Breadcrumb::Item @text={{this.model.name}} @current={{true}} />
    </Hds::Breadcrumb>
  </p.top>
  <p.levelLeft>
    <h1 class="title is-3">
      {{this.model.name}}
    </h1>
  </p.levelLeft>
</PageHeader>
<div class="tabs-container box is-sideless is-fullwidth is-paddingless is-marginless">
  <nav class="tabs sub-nav" aria-label="navigation for managing identity alias">
    <ul>
      {{#each (tabs-for-identity-show this.model.identityType) as |tab|}}
        <LinkTo @route="vault.cluster.access.identity.aliases.show" @models={{array this.model.id tab}}>
          {{capitalize tab}}
        </LinkTo>
      {{/each}}
    </ul>
  </nav>
</div>
<Toolbar>
  <ToolbarActions>
    <ToolbarLink @route="vault.cluster.access.identity.aliases.edit" @model={{this.model.id}} data-test-alias-edit-link>
      Edit
      {{lowercase (humanize this.model.identityType)}}
    </ToolbarLink>
  </ToolbarActions>
</Toolbar>
{{component (concat "identity/item-alias/alias-" this.section) model=this.model}}